<!-- 数据字典 Select 选择器 -->
<template>
  <el-cascader :options="getOptions" v-bind="attrs" />
</template>

<script lang="ts" setup>
defineOptions({ name: 'LinkSelect' })

const attrs = useAttrs()

// 接受父组件参数
interface Props {
  options?: any
  formCreateInject?: any
}

const props = withDefaults(defineProps<Props>(), {
  options: []
})

// 获得字典配置
const getOptions = computed(() => {
  console.log(props)
  return props.options
})
</script>
